package com.example.wishstar.view.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.TextView;

import com.example.wishstar.R;
import com.example.wishstar.databinding.ActivityLoginBinding;
import com.example.wishstar.viewmodel.LoginViewModel;

/**
 * 登陆Activity
 */

public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final ActivityLoginBinding activityTwoWayBindingBinding = DataBindingUtil.setContentView(this, R.layout.activity_login);
        activityTwoWayBindingBinding.setLoginViewModel(new LoginViewModel(this));
        TextView title = findViewById(R.id.common_title);
        title.setText("WishStar");
    }
}